package Practice09;

import java.util.ArrayList;
import java.util.Scanner;

public class HongBaoTest {
    public static void main(String[] args) {
        QunZhu qz = new QunZhu("群主",200);
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入金额：");
        int money = sc.nextInt();
        System.out.println("请输入个数");
        int count = sc.nextInt();
        ArrayList<Double> sendList = qz.send(money,count);
        if(sendList ==null){
            System.out.println("余额不足");
            return;
        }
        Member m1 = new Member();
        Member m2 = new Member();
        Member m3 = new Member();
        m1.openHongBao(sendList);
        m2.openHongBao(sendList);
        m3.openHongBao(sendList);


        qz.show();
        m1.show();
        m2.show();
        m3.show();

    }
}
